import React, { Component } from 'react'
import { HashRouter, Switch, Route } from 'react-router-dom'
import Home from './components/js/home'
import login from './components/js/login'

class Router extends Component {
    render() {
        return (
            <div>
                <HashRouter>
                    <Switch>
                        <Route path='/login' component={login} />
                        <Route path='/' component={Home} />
                    </Switch>
                </HashRouter>
            </div>
        )
    }
}

export default Router